home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / wp50util.arc / HEADINGS.DOC < prev    next >
Text File  |  1988-05-12  |  4KB  |  75 lines

  1.                           HEADINGS
  2.  
  3.  
  4. PROCEDURE:  Put HEADINGS and ALTH.WPM in whatever subdirec-
  5. tory you have told WordPerfect 5.0 to look to for Style
  6. Library and Macros, respectively.  Use Shift-F1, 7, to
  7. specify that HEADINGS is your style library.  (Note that in
  8. the menu for Auxiliary Files, the entry for styles, number
  9. 6, is the ONLY one that requires an actual filename as well
  10. as a path.  Thus my answer to #6 reads C:\WP5\HEADINGS.)
  11.  
  12. Press Alt-H and answer the questions that appear.  If you
  13. don't want a conditional end of page code protecting your
  14. header, answer zero ("0") to the question about number of
  15. lines to keep together.  The system allows for four levels
  16. of headings, so the answer to the question about level of
  17. headings must be some number between 1 and 4.
  18.  
  19. You will emerge with the number of the heading determined by
  20. automatic paragraph numbering, with your cursor at the point
  21. in a style where you should enter your text.  Note that some
  22. of the styles involve underlining (included in the style),
  23. and that in order to get the final punctuation outside the
  24. underline code I have put a period (full stop) in the style
  25. itself.  Thus, in those styles, you will appear to be push-
  26. ing the period ahead of your cursor as you type, and you
  27. should not yourself enter the final punctuation.  In styles
  28. not involving underlining I have left final punctuation to
  29. the user.
  30.  
  31. When you press enter, the macro will close the style and
  32. leave your cursor at the next point below the style where
  33. you can begin entering text.  Note that the macro changes
  34. spacing to single; if you want to continue on in double
  35. space you will have to enter a new spacing code.
  36.  
  37. POINTS ABOUT USE:  The hardest part of designing this was
  38. dealing with conditional end-of-page.  You can't put the
  39. conditional end-of-page code in the style itself, because
  40. you don't predict how many lines to keep together.  You
  41. don't want a conditional end-of-page code mandatory for each
  42. heading, because if you have several headings in series,
  43. without main text separating them, you want them all togeth-
  44. er.  Conditional end-of-page codes continue in effect until
  45. the EARLIER to occur of (1) the number of lines stated or
  46. (2) another conditional end-of-page code.  Even if the next
  47. conditional end-of-page code is set for zero lines.
  48.  
  49. ALTH.MAC takes that into account.  If you're creating a
  50. series of sequential headings not separated by any main
  51. text, create the first with some large number of lines held
  52. together by a conditional-end-of-page code, and create the
  53. rest answering zero ("0") to the number of lines to keep
  54. together question.  When the macro encounters zero in Vari-
  55. able 2, it creates no conditional end-of-page code at all.
  56.  
  57. TABLE OF CONTENTS:  You may want to adjust my styles.  I
  58. have the habit of marking ALL headings as first-level,
  59. because that way they are reported in the ToC with a blank
  60. line separating them.  I depend on my own formatting in the
  61. text, and not the ToC's formatting when generated, to dis-
  62. tinguish one level from another.
  63.  
  64. CUSTOMIZE!  This whole system should work right out of the
  65. archive.  Results will depend, in part, on how you have
  66. defined paragraph numbering.  Feel free to make any changes;
  67. at least you've got a model to start from.  Good luck!
  68.  
  69.                                            Anders R. Sterner
  70.                                             TPF&S Consulting
  71.                                   99 Park Avenue, 25th Floor
  72.                                     New York, New York 10016
  73.                                               (212) 986-7714
  74.                                    Telex 127776 TANGILEX NYK
  75.                                     Compuserve ID# 47604,404